import request from '@/router/axios';



// 获取随机字符串
export const getRandomCode = (data) => {
  return request({
    url: '/api/uic-system/iotdevice/getRandomCode',
    method: 'get',
    params: {
      ...data
    }
  })
}

// 产品分页列表
export const getIotProductList = (data) => {
  return request({
    url: '/api/uic-system/iotproduct/list',
    method: 'get',
    params: {
      ...data
    }
  })
}

// 产品分页列表
export const getIotProductPage = (data) => {
  return request({
    url: '/api/uic-system/iotproduct/page',
    method: 'get',
    params: {
      ...data
    }
  })
}
// 新增或修改产品
export const iotProductSubmit = (row) => {
  return request({
    url: '/api/uic-system/iotproduct/submit',
    method: 'post',
    data: row
  })
}


// 删除产品
export const iotProductRemove = (row) => {
  return request({
    url: '/api/uic-system/iotproduct/remove',
    method: 'post',
    data: row
  })
}

